﻿<%@ Page Language="C#" MasterPageFile="~/MasterMockProject.Master" AutoEventWireup="true" CodeBehind="ClientManager.aspx.cs" Inherits="MockProjectGroupThree.Presentation.ProfileManagement.ClientManager" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMaster" runat="server">
<div class="CPFListClient">
    <h3 class="title">List Client</h3>
    <asp:Repeater ID="RepeaterClient" runat="server" 
        onitemcommand="RepeaterClient_ItemCommand">
    <HeaderTemplate>
    <table width="500px" border="1px">
        <tr style="background-color:#fb7700; text-align:center;">
            <td></td>
            <td>ClientId</td>
            <td>UserName</td>
            <td>Company Name</td>
            <td>Address</td>
            <td>Phone Number</td>
            <td>Email</td>
        </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr style="background-color:#ffffff">
            <td>
            <asp:HiddenField runat="server" ID="HiddenClientId" Value='<%# Eval("ClientId") %>' />
            <asp:CheckBox runat="server" ID="checkDelete"/>
            </td>
            <td style="text-align: center"><a href="UpdateClient.aspx?id=<%# Eval("ClientId")%>"><asp:Label runat="server" ID="labelClientId"><%# DataBinder.Eval(Container.DataItem,"ClientId")%></asp:Label></a></td>
            <td><asp:Label ID="labelUserName" runat="server"><%# DataBinder.Eval(Container.DataItem,"UserName") %></asp:Label></td>
            <td><asp:Label ID="labelCompanyName" runat="server"><%# DataBinder.Eval(Container.DataItem, "CompanyName")%></asp:Label></td>
            <td><asp:Label ID="labelAddress" runat="server"><%# DataBinder.Eval(Container.DataItem,"Address") %></asp:Label></td>
            <td><asp:Label ID="labelPhoneNumber" runat="server"><%# DataBinder.Eval(Container.DataItem,"PhoneNumber") %></asp:Label></td>
            <td><asp:Label ID="labelEmail" runat="server"><%# DataBinder.Eval(Container.DataItem,"Email") %></asp:Label></td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        <tr style="background-color:#15880a">
            <td colspan="7"></td>
        </tr>
        <tr>
            <td colspan="7">
                <asp:LinkButton ID="linkDelSelected" ForeColor="Blue" runat="server" 
                    onclick="linkDelSelected_Click"
                    OnClientClick='javascript:return confirm("Are you sure you want to delete?")'>Delete Selected</asp:LinkButton>            
            </td>
        </tr>
    </table>
    </FooterTemplate>
    </asp:Repeater>
        <asp:Label ID="LabelTestItem" runat="server" Text="LabelTestItem"></asp:Label>
        <div class="CPFPage">
            <div class="CPFpre"><asp:HyperLink ID="linkPrevious" runat="server"> << Pre</asp:HyperLink></div>
            
            <div class="CPFnumberPage">
            <asp:Repeater ID="repeaterItems" runat="server">
                <HeaderTemplate>
                    <table>
                    <tr class="CPFtext">
                    <td><b></b>
                    </td>
                    <td>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="buttonPage" CommandName="Page" CommandArgument="<%# Container.DataItem %>" CssClass="CPFtext"><%# Container.DataItem %></asp:LinkButton>
                </ItemTemplate>
                <FooterTemplate>
                </td>
                </tr>
                </table>
                </FooterTemplate>
            </asp:Repeater>
            </div>
            
            <div class="CPFNext"><asp:HyperLink ID="linkNext" runat="server">Next >></asp:HyperLink></div>
            <div class="labelTotalPage"><asp:Label ID="Label1" runat="server"></asp:Label></div>
        </div> 
</div>    
</asp:Content>
